﻿<#--<#include "../../layout/base.ftl">-->
<#--<#macro header>-->
<script type="text/javascript" src="${base}/scripts/jhgl/bgjhgyz.js"></script>
<#--</#macro>-->
<#--<#macro body>-->
<div id="bgjhgyz_layout" class="easyui-layout" data-options="fit:true" style="width: 100%;height: 100%">
    <div data-options="region:'north',split:true" style="width: 100%;height:375px">
        <div id="bgjhgyz_toolbar">
            <div class="PTools">
                <ul class="niu">
                <#--<li><a name="cl" href="javascript:void(0);" plain="true">处理</a></li>-->
                <#if gnczList??>
                    <#list gnczList as gncz>
                        <li>${(gncz.gnczHtml)!}</li>
                    </#list>
                </#if>
                </ul>
                <div class="sea-tool"><a href="javascript:void(0)"><span>高级搜索</span></a></div>
            </div>
            <div class="textcon">
                <table class="tb">
                    <tr>
                        <th>类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</th>
                        <td>
                            <select class="easyui-combobox" name="type" style="width:150px;" panelHeight='130'
                                    editable="false">
                                <option value="">全部</option>
                                <option value="ydjh">月度计划</option>
                                <option value="jyljh">急用料计划</option>
                                <option value="zjjh">追加计划</option>
                                <option value="bccbjh">补充储备计划</option>
                            </select>
                        </td>
                        <th>计划单位：</th>
                        <td>
                            <input name="zgsId" type="hidden" value="${(zgs.id)!}"/>
                            <input name="jhdwId" type="text" class="easyui-combobox" style="width:150px;"/>
                        </td>
                        <th>物资编码：</th>
                        <td><input name="wzbm" type="text" class="searchinput-text" style="width:150px"/></td>
                        <#--<th>计划年份：</th>-->
                        <#--<td>-->
                            <#--<input name="jhnf" type="text" style="width:53px;" value="${(date?string("yyyy"))!}">-->
                            <#--月份：-->
                            <#--<input name="jhyf" type="text" style="width:53px;" value="${(date?string("MM"))!}">-->
                        <#--</td>-->
                    </tr>
                    <tr>
                        <th>计划说明：</th>
                        <td><input name="sm" type="text" class="searchinput-text" style="width:150px"/></td>
                        <th>设备材料：</th>
                        <td><select  id="gyzsbcl" class="easyui-combobox" style="width: 150px" panelHeight='80'>
                            <option value="" >全部</option>
                            <option value="cl" >材料</option>
                            <option value="sb">设备</option>
                        </select></td>
                    </tr>
                    <tr>
                        <th>计划时间：</th>
                        <td><input name="startDate" type="text" class="easyui-datebox" style="width:150px"/></td>
                        <td align="center">至</td>
                        <td><input name="endDate" type="text" class="easyui-datebox" style="width:150px"/></td>
                        <td style=" padding-left:5px;">
                            <input name="searchButton" type="button" class="submit" plain="true"/></td>
                        <td></td>
                    </tr>
                </table>
            </div>
        </div>
        <table id="bgjhgyz_grid">
        </table>
    </div>
    <div data-options="region:'center'">
        <div id="bgjhgyz_tabs" class="easyui-tabs" detail="true" data-options="fit:true,border:false">
            <div title="保供物资计划明细">
                <table id="bgjhgyz_wzjh_grid" class="easyui-datagrid" data-options="fitColumns: false,pageSize:50,rownumbers:true,singleSelect:true,pageNumber:1,pagination:true,fit:true,width:1850">
                    <thead>
                    <tr>
                        <th data-options="field:'wzgg.oldcode',width:150,align:'center'">物资编码</th>
                        <#--<th data-options="field:'wzgg.code',width:150">新物资编码</th>-->
                        <th data-options="field:'wzgg.name',width:100,align:'center'">物资名称</th>
                        <th data-options="field:'wzgg.ggxh',width:100,align:'center'">型号规格</th>
                        <th data-options="field:'wzgg.th',width:100,align:'center'">图号</th>
                        <th data-options="field:'wzgg.dw',width:100,align:'center'">单位</th>
                        <th data-options="field:'cgfs',width:100,align:'center'">类型</th>
                        <th data-options="field:'jhsl',width:150,formatter:formatSlForHtml,align:'right'">计划数量</th>
                        <th data-options="field:'kcsl',width:150,formatter:formatSlForHtml,align:'right'">库存数量</th>
                        <th data-options="field:'sl1',width:150,formatter:formatSlForHtml,align:'right'">一级平衡数量</th>
                        <th data-options="field:'sl2',width:150,formatter:formatSlForHtml,align:'right'">二级平衡数量</th>
                        <th data-options="field:'sbsl',width:150,formatter:formatSlForHtml,align:'right'">上报数量</th>
                        <th data-options="field:'dhrq',width:120,align:'center'">到货日期</th>
                        <th data-options="field:'ph',width:120,align:'center'">牌号</th>
                        <th data-options="field:'sbcl',formatter:seBeiFormatter,width:100,align:'center'">设备材料</th>
                        <th data-options="field:'bz',width:100,align:'center'">备注</th>
                        <th data-options="field:'jhy',width:100,align:'center'">计划员</th>
                        <th data-options="field:'tjr',width:100,align:'center'">提交人</th>
                        <th data-options="field:'tjsj',width:100,align:'center'">提交时间</th>
                        <th data-options="field:'hzr',width:100,align:'center'">汇总人</th>
                        <th data-options="field:'hzsj',width:100,align:'center'">汇总时间</th>
                        <th data-options="field:'gyzclr',width:100,align:'center'">供应站处理人</th>
                        <th data-options="field:'gyzclsj',width:150,align:'center'">供应站处理时间</th>
                        <th data-options="field:'ywkclr',width:100,align:'center'">业务科处理人</th>
                        <th data-options="field:'ywkclsj',width:100,align:'center'">业务科处理时间</th>
                        <th data-options="field:'zt',width:100,align:'center'">状态</th>
                        <th data-options="field:'htbm',width:100,formatter:formatHtDetail,align:'center'">合同编码</th>
                        <th data-options="field:'cgdh',width:100,formatter:formatCgdDetail,align:'center'">采购单号</th>
                        <th data-options="field:'ysr',width:80,align:'center'">验收人</th>
                        <th data-options="field:'yssj',width:100,align:'center'">验收时间</th>
                    </tr>
                    </thead>
                </table>
            </div>
            <#--<div title="采购合同">-->
                <#--<table id="bgjhgyz_cght_grid" class="easyui-datagrid"-->
                       <#--data-options="fitColumns: true,pageSize:50,rownumbers:true,singleSelect:true,pageNumber:1,pagination:true,fit:true">-->
                <#--</table>-->
            <#--</div>-->
            <#--<div title="采购单">-->
                <#--<table id="bgjhgyz_cgd_grid" class="easyui-datagrid"-->
                       <#--data-options="fitColumns: true,pageSize:50,rownumbers:true,singleSelect:true,pageNumber:1,pagination:true,fit:true">-->
                <#--</table>-->
            <#--</div>-->
            <div title="退回的物资计划">
                <table id="wzjhgl_thwzjh_grid">
                </table>
            </div>
        </div>
    </div>
</div>
<#--</#macro>-->